<template>
	<view>
		
		<view class="m2">
			<text>昵称</text>
			<text>{{jianli1.headname}} </text>
		</view>
		
		<view class="m3">
			<text>性别</text>
			<text>{{jianli1.sex}} </text>
		</view>
		
		<view class="m4">
			<text>年龄</text>
			<text>{{jianli1.age}} </text>
		</view>
		
		<view class="m5">
			<text>学历</text>
			<text>{{jianli1.xueli}} </text>
		</view>
		
		<view class="m6">
			<text>工作经历</text>
			<text>{{jianli1.word}} </text>
		</view>
		
		<view class="m7">
			<text>电话号码</text>
			<text>{{jianli1.phone}}</text>
		</view>
		
		<view class="m8">
			<navigator hover-class="none" url="/pages/bianji/bianji">编辑信息</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name:'',
				jianli1:{}
			}
		},
		onLoad() {
			this.jianli()
			
		},
		methods: {
			async jianli(){
				const name = uni.getStorageSync('token');
				console.log("简历名："+name);
				const res = await this.$myRuquest({
					url:'/jianli?username='+name
				})
				this.jianli1=res.data
				
				console.log(res.data)
				console.log(this.jianli1)
				console.log(res.data.username)
				console.log(this.jianli1.headname)
			}
		}
	}
</script>

<style lang="scss">

	.m2,.m3,.m4,.m5,.m6,.m7{
		display: flex;//在一行显示
		margin: 2px auto;
		background-color: #fff;
		padding: 10px 0px 10px 0px;
		border-bottom: 2px solid #ccc;
		text:nth-child(1){
			font-weight:600;
			font-size: 17px;
			color: #000;
			margin: 0px 30px 0px 5px;
		}
		text:nth-child(2){
			position: absolute;
			left: 110px;
			margin-left: 10px;
			font-size: 18px;
			color: #6D6D72;
		}
	}
	
	.m8{
		margin: 40px 90px 0px 90px;
		padding: 10px;
		border-radius: 5px;
		color: #eee;
		background-color: #E88807;
		text-align: center;
		
	}
</style>
